<?php if(!defined('IN_MEMBER')) exit('Request Error!'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $cfg_webname; ?> - 会员中心 - 我的留言</title>
<link href="<?php echo $cfg_webpath; ?>/templates/default/style/member.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo $cfg_webpath; ?>/templates/default/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $cfg_webpath; ?>/templates/default/js/member.js"></script>
</head>

<body>
<div class="header">
	<div class="area">
		<div class="logo"><a href="<?php echo $cfg_webpath; ?>/"></a></div>
		<div class="retxt"><a href="<?php echo $cfg_webpath; ?>/">网站首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="?a=logout">退出</a></div>
	</div>
</div>
<div class="mainbody">
	<div class="leftarea">
		<?php require('left.php'); ?>
	</div>
	<div class="rightarea">
		<h3 class="subtitle">我的留言</h3>
		<?php
		$dopage->GetPage("SELECT * FROM `#@__message` WHERE nickname='$c_uname' ORDER BY id DESC",10);
		if($dosql->GetTotalRow() > 0)
		{
		?>
		<form name="form" id="form" method="post">
		<ul class="msglist">
			<?php
			while($row = $dosql->GetArray())
			{
			?>
			<li><p><input type="checkbox" name="checkid[]" id="checkid[]" value="<?php echo $row['id']; ?>" />&nbsp;&nbsp;<?php echo ClearHtml($row['content']); ?></p><span class="from">来自网站留言</span><span class="time"><?php echo GetDateTime($row['posttime']); ?></span><div class="cl"></div>
			<?php
			if($row['recont'] != '') echo '【回复】'.ClearHtml($row['recont']);
			?>
			</li>
			<?php
			}
			?>
		</ul>
		</form>
		<div class="options_b">选择： <a href="javascript:CheckAll(true);">全部</a> - <a href="javascript:CheckAll(false);">无</a> - <a href="javascript:DelAllNone('?a=delmsg');" onclick="return ConfDelAll(0);">删除</a></div>
		<?php echo $dopage->GetList(); ?>
		<?php
		}
		else
		{
		?>
		<div class="nonelist">您还没有留言哦！</div>
		<?php
		}
		?>
	</div>
	<div class="cl"></div>
</div>
<div class="footer"><?php echo $cfg_copyright; ?></div>
</body>
</html>
